package guoanmaker.operator.business.repository;



import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import guoanmaker.operator.business.model.OperatorFriendshipLink;

/**
 *  
 *
 * @author huZhaoyu 
 * @ClassName: OperatorFriendshipLinkRepository
 * @Description: 友情链接Repository
 * @date 2017/6/28
 */
public interface OperatorFriendshipLinkRepository extends JpaRepository<OperatorFriendshipLink, String>, JpaSpecificationExecutor<OperatorFriendshipLink> {
	@Query("select u from OperatorFriendshipLink u  where u.cityCode=:cityCode")
   public List<OperatorFriendshipLink> findByCityCode(@Param("cityCode") String cityCode);
	
	@Query("select u from OperatorFriendshipLink u  where u.type=:type")
	   public List<OperatorFriendshipLink> findByType(@Param("type") String type);

}